<?php

function database_connect($host, $user, $pass, $db)
{
  mysql_connect($host, $user, $pass);
  mysql_select_db($db);
  mysql_query("SET NAMES utf8");
  
}

?>